package cn.doourbest.learndubbo.learndubboconsumer.service;

import cn.doourbeat.learnspring.common.api.AnnotationService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component("annotationAction")
public class AnnotationAction {

    @Reference
    private AnnotationService annotationService;
    
    public String doSayHello(String name) {
        return annotationService.sayHello(name);
    }

    public static void main(String[] args) {
        System.out.println(UUID.randomUUID().toString());
    }
}